package com.ucenter.server.user.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.type.Alias;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.system.comm.model.BaseEntity;
import com.ucenter.server.auth.pojo.ResInfo;
import com.ucenter.server.auth.pojo.RoleInfo;
import com.ucenter.server.org.pojo.PositionUser;

/**
 * user_info实体
 * @author autoCode
 * @date 2018-02-06 15:18:19
 * @version V1.0.0
 */
@Alias("userInfo")
@SuppressWarnings("serial")
@JsonInclude(Include.NON_NULL)
public class UserInfo extends BaseEntity implements Serializable {
	//编号
	private String userId;
	//用户名
	private String userName;
	//密码
	private String password;
	//昵称
	private String nick;
	//姓名
	private String name;
	//邮箱
	private String email;
	//手机号
	private String phone;
	//状态[10正常、20冻结]
	private Integer status;
	//创建人
	private String createUserId;
	//创建时间
	private Date createTime;
	
	//============================= 扩展属性
	//状态名称
	private String statusName;
	//token
	private String token;
	//sessionId
	private String sessionId;
	// 授权站点
	private String websiteId;
	// 菜单功能集合
	private List<ResInfo> resList;
	// 角色集合
	private List<RoleInfo> roleList;
	// 岗位集合
	private List<PositionUser> positionList;
	// 用近5条日志
	private List<UserLog> logList;
	// 角色编号
	private String roleId;
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public String getStatusName() {
		return statusName;
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	public String getWebsiteId() {
		return websiteId;
	}
	public void setWebsiteId(String websiteId) {
		this.websiteId = websiteId;
	}
	public String getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}
	public List<ResInfo> getResList() {
		return resList;
	}
	public void setResList(List<ResInfo> resList) {
		this.resList = resList;
	}
	public List<RoleInfo> getRoleList() {
		return roleList;
	}
	public void setRoleList(List<RoleInfo> roleList) {
		this.roleList = roleList;
	}
	public List<PositionUser> getPositionList() {
		return positionList;
	}
	public void setPositionList(List<PositionUser> positionList) {
		this.positionList = positionList;
	}
	public List<UserLog> getLogList() {
		return logList;
	}
	public void setLogList(List<UserLog> logList) {
		this.logList = logList;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
}